const Layout = () => import('@/layout/index.vue')

export default {
    path: '/article_manager',
    component: Layout,
    redirect: '/article_manager/list',
    name: 'articleManger',
    meta: {
        title: '文章管理',
        icon: 'sidebar-articles'
    },
    children: [
        {
            path: 'list',
            redirect: '/article_manager/list',
            meta: {
                title: '文章列表'
            },
            children: [
                {
                    path: '',
                    name: 'articleMangerList',
                    component: () => import('@/views/article_manager/list.vue'),
                    meta: {
                        title: '文章列表',
                        sidebar: false,
                        breadcrumb: false
                    }
                },
                {
                    path: 'detail',
                    name: 'articleMangerDetail',
                    component: () =>
                        import('@/views/article_manager/detail.vue'),
                    meta: {
                        title: '文章详情',
                        sidebar: false,
                        activeMenu: '/article_manager/list'
                    }
                },
                {
                    path: 'edit',
                    name: 'articleMangerEdit',
                    component: () => import('@/views/article_manager/edit.vue'),
                    meta: {
                        title: '文章编辑',
                        sidebar: false,
                        activeMenu: '/article_manager/list'
                    }
                }
            ]
        },
        {
            path: 'publish',
            name: 'articleMangerPublish',
            component: () => import('@/views/article_manager/publish.vue'),
            meta: {
                title: '发表文章'
            }
        },
        {
            path: 'category',
            name: 'articleMangerCategory',
            component: () => import('@/views/article_manager/category.vue'),
            meta: {
                title: '文章类别'
            }
        }
    ]
}
